package cn.ligoo.dtu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.dtu.dao.BmuSlaveBoxTempDao;
import cn.ligoo.dtu.domain.BmuSlaveBoxTemp;
import cn.ligoo.dtu.service.BmuSlaveBoxTempService;

/**
 * @author Jin,QingHua
 * @version 2012-07-24 12:18:52
 */
@Service
public class BmuSlaveBoxTempServiceImpl implements BmuSlaveBoxTempService {

	@Resource
	private BmuSlaveBoxTempDao bmuSlaveBoxTempDao;

	@Override
	public Integer createBmuSlaveBoxTemp(BmuSlaveBoxTemp t) {
		this.bmuSlaveBoxTempDao.insertEntity(t);
		return t.getId();
	}

	@Override
	public int modifyBmuSlaveBoxTemp(BmuSlaveBoxTemp t) {
		return this.bmuSlaveBoxTempDao.updateEntity(t);
	}

	@Override
	public int removeBmuSlaveBoxTemp(BmuSlaveBoxTemp t) {
		return this.bmuSlaveBoxTempDao.deleteEntity(t);
	}

	@Override
	public BmuSlaveBoxTemp getBmuSlaveBoxTemp(BmuSlaveBoxTemp t) {
		return this.bmuSlaveBoxTempDao.selectEntity(t);
	}

	@Override
	public Integer getBmuSlaveBoxTempCount(BmuSlaveBoxTemp t) {
		return this.bmuSlaveBoxTempDao.selectEntityCount(t);
	}

	@Override
	public List<BmuSlaveBoxTemp> getBmuSlaveBoxTempList(BmuSlaveBoxTemp t) {
		return this.bmuSlaveBoxTempDao.selectEntityList(t);
	}

}
